<%@ page import="DOMAIN.ThoughtItem" %>
<%@ page import="DOMAIN.Context" %>

<html>
<head>
<title>D&eacute;tails d'une id&eacute;e</title>
 <link rel="stylesheet" href="style.css">
</head>
<body>	

<div id="topNav" >
<%@ include file="menu.jsp" %>	
</div>
<div id="content"  >
<h2 ><span>D&eacute;tails </span>id&eacute;e</h2>
 <div id="leftContent">
	<% 
		ThoughtItem bi = ((ThoughtItem)request.getAttribute("ThoughtItem"));
		if(bi==null)
		{
	 %>

	<span class="error">Aucune item associ&eacute;e</span>
	<%
	}
	else
	{ %>
    <label>Titre</label>
    <%= bi.GetTitle() %>
    <label>Description</label>
    <%= bi.GetDescription() %>
	
	<% } %>
     </div>
    <div id="rightContent">
    <h3>Action</h3>    
    <p>
    <ul>
    <% if(bi!=null) {%>
    <li><a href="EditThoughtItem?id=<%= bi.GetId() %>" >Editer</a></li>
    <li><a href="DeleteThoughtItem?id=<%= bi.GetId() %>" >Supprimer</a></li>
    <% } %>
    <li><a href="ListThoughtItem" >Retour liste</a></li>
    </ul>
    </p>
    </div>
	
</div>	
</body>
</html>
